const {ccclass, property} = cc._decorator;

@ccclass
export default class ColorAdjustment extends cc.Component {
  @property(cc.Sprite)
  sprite:cc.Sprite=null
    @property(Number)
    brightness:number=1;
    @property(Number)
    saturation:number=1;
    @property(Number)
    contrast:number=1;
  kk  (){


    this.sprite.getMaterial(0).setProperty('brightness', this.brightness);
this.sprite.getMaterial(0).setProperty('saturation', this.saturation);
this.sprite.getMaterial(0).setProperty('contrast', this.contrast);}
    



} 